CommandText Class Reference

#include <CommandText.h>

List of all members.

Public Member Functions

 CommandText (OSGWindows *osgwind)
 ~CommandText ()
osg::ref_ptr< osg::Projection > CreateHUD (osg::ref_ptr< osg::Geode > hudGeometry, int width, int height, int binNumber=11, const char *binName="RenderBin")
osg::ref_ptr< osg::Geode > createText (string str)
osg::ref_ptr< osg::Group > createTextGroup ()

Protected Attributes

osg::ref_ptr< osg::Geode > geode
osg::ref_ptr< osgText::Text > text
OSGWindows * osgwind_


Detailed Description

CommandText class. This class is used for the aim of inserting text into the scene. The period of the texts are determined in the editor and inserted in necssary frames. In the animation texts are seen in the corresponding frames for 2 seconds. The texts are objects like other object types of osg and they are used as projections in both editor and animation.

Definition at line 9 of file CommandText.h.


Constructor & Destructor Documentation

CommandText::CommandText (  OSGWindows *  osgwind  ) 
 

CommandText constructor.

Parameters:
osgwind 

Definition at line 4 of file CommandText.cpp.

References geode, osgwind, osgwind_, and text.

CommandText::~CommandText (   ) 
 

CommandText destructor.

Definition at line 12 of file CommandText.cpp.


Member Function Documentation

osg::ref_ptr< osg::Projection > CommandText::CreateHUD (  osg::ref_ptr< osg::Geode >  hudGeometry,
int  width,
int  height,
int  binNumber = 11,
const char *  binName = "RenderBin"
) 
 

Takes the 2D orthogonal of the geometry of the text object.

Parameters:
hudGeometry 
width 
height 
binNumber 
binName 
Returns:
The Projection matrix of the text.

Definition at line 33 of file CommandText.cpp.

Referenced by RightView::OnFreeplacerightmenuInserttext().

osg::ref_ptr< osg::Geode > CommandText::createText (  string  str  ) 
 

Parameters:
str a string variable
Returns:
The Geode of the text. Adjusts the font, character size and position of the text and retsurn its geom.

Definition at line 17 of file CommandText.cpp.

References geode, and text.

Referenced by RightView::OnFreeplacerightmenuInserttext().

osg::ref_ptr< osg::Group > CommandText::createTextGroup (   ) 
 

Returns:
the Group of the created text Adds the text objects to a sequence variable and assigns a time for each text to be seen in the scene.

Definition at line 56 of file CommandText.cpp.

References OSGWindows::getTextArray(), group, and osgwind_.


Member Data Documentation

osg::ref_ptr<osg::Geode> CommandText::geode [protected]
 

Definition at line 12 of file CommandText.h.

Referenced by CommandText(), and createText().

OSGWindows* CommandText::osgwind_ [protected]
 

Definition at line 14 of file CommandText.h.

Referenced by CommandText(), and createTextGroup().

osg::ref_ptr<osgText::Text> CommandText::text [protected]
 

Definition at line 13 of file CommandText.h.

Referenced by CommandText(), and createText().


The documentation for this class was generated from the following files:
Generated on Sun May 28 18:54:12 2006 for TraffEdu by  doxygen 1.4.6-NO